Rule based lexicographical permutation sequences

نویسنده

  • Asbjorn Braendeland
چکیده

In a permutation sequence built by means of sub permutations, the transitions between successive permutations are subject to a set of n(n – 1)/2 rules that naturally group into n – 1 matrices with a high degree of regularity. By means of these rules, the sequence can be produced in O(3n!) time and O(n) space. To generate all permutations of a given set one can go for (among other things) a minimum of changes from one permutation to the next [1], [2], [4], or lexicographic order, at the cost of having to perform more changes [3]. Here, we go for the latter. A lexicographic order can be established by recursively producing successively larger sub-permutations, starting from the right, as in the following example on six elements. This makes the permuted elements move back and forth according to a set of rules, from one permutation to the next. 1 ( a b c d e f ) 705 ( f e b c a d ) 2 ( a b c d f e ) 706 ( f e b c d a ) 3 ( a b c e d f ) 707 ( f e b d a c ) 4 ( a b c e f d ) 708 ( f e b d c a ) 5 ( a b c f d e ) 709 ( f e c a b d ) 6 ( a b c f e d ) 710 ( f e c a d b ) 7 ( a b d c e f ) 711 ( f e c b a d ) 8 ( a b d c f e ) 712 ( f e c b d a ) 9 ( a b d e c f ) ... 713 ( f e c d a b ) 10 ( a b d e f c ) 714 ( f e c d b a ) 11 ( a b d f c e ) 715 ( f e d a b c ) 12 ( a b d f e c ) 716 ( f e d a c b ) 13 ( a b e c d f ) 717 ( f e d b a c ) 14 ( a b e c f d ) 718 ( f e d b c a ) 15 ( a b e d c f ) 719 ( f e d c a b ) 16 ( a b e d f c ) 720 ( f e d c b a ) Here is one way of producing the sequence: Make a 6  6 matrix M with identical rows = [a b c d e f], take the downwards diagonal D and the 5  6 matrix N = M \ D, make the permutations of each row in N recursively and prepend D[i] to each permutation of N[i]. The principle is illustrated in Figure 1, with four instead of six elements.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On Parallel Generation of Partial Derangements, Derangements and Permutations

The concept of a partial derangement is introduced and a versatile representation of partial derangements is proposed with permutations and derangements as special cases. The representation is derived from a representation of permutations by iterative decomposition of symmetric permutation group Sn into cosets. New algorithms are proposed for generation of partial set derangements in t. The con...

متن کامل

A two-stage stochastic rule-based model to determine pre-assembly buffer content

This study considers instant decision-making needs of the automobile manufactures for resequencing vehicles before final assembly (FA). We propose a rule-based two-stage stochastic model to determine the number of spare vehicles that should be kept in the pre-assembly buffer to restore the altered sequence due to paint defects and upstream department constraints. First stage of the model decide...

متن کامل

Analysis of permutation equivalence in -adhesive transformation systems with negative application conditions

M-adhesive categories provide an abstract framework for a large variety of specification frameworks for modelling distributed and concurrent systems. They extend the well-known frameworks of adhesive and weak adhesive HLR categories and integrate high-level constructs like attribution as in the case of typed attributed graphs. This article presents M-adhesive transformation systems including ne...

متن کامل

Multiset Permutations in Lexicographic Order

In a previous work [12], we proposed a method for generating permutations in lexicographic order. In this study, we extend it to generate multiset permutations. A multiset is a collection of items that are not necessarily distinct. The guideline of the extension is to skip, as soon as possible, those partially-formed permutations that are less than or equal to the latest generated eligible perm...

متن کامل

Words over an ordered alphabet and suffix permutations

Given an ordered alphabet and a permutation, according to the lexicographic order, on the set of suffixes of a word w, we present in this article a linear time and space method to determine whether a word w′ has the same permutation on its suffixes. Using this method, we are then also able to build the class of all the words having the same permutation on their suffixes, first of all the smalle...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2015